/**
 * COPYRIGHT. Harry Wu 2011. ALL RIGHTS RESERVED.
 * Project: just-core
 * Author: Harry Wu <harrywu304@gmail.com>
 * Created On: Jun 29, 2011 5:35:13 PM
 *
*/ 
package org.justframework.api.rest;

import org.justframework.api.connector.Request;
import org.justframework.api.connector.Response;


/**
 * resource service interface
 *
 */
public interface RestService {
	
	/**
	 * semantics 'add'
	 * @param uri
	 * @param params
	 * @return
	 */
	public Response post(Request request);
	
	/**
	 * semantics 'delete'
	 * @param uri
	 * @param params
	 * @return
	 */
	public Response delete(Request request);
	
	/**
	 * semantics 'query'
	 * @param uri
	 * @param params
	 * @return
	 */
	public Response get(Request request);
	
	/**
	 * semantics 'update'
	 * @param uri
	 * @param params
	 * @return
	 */
	public Response put(Request request);
}
